<!--
 * @Author: zhaoqr
 * @Date: 2024-09-24
 * @LastEditTime: 2024-09-24
 * @LastEditors: zhaoqr zhaoqr@channelsoft.com
 * @Description: 
 * @FilePath: \vue3-template\src\pages\second\index.vue
-->
<script setup>
import MyInput from '../../components/MyInput.vue';
import { ref } from 'vue';
const focus = () => {
  myInputRef.value.focus();
};
const myInputRef = ref();
</script>

<template>
  <el-button type="primary" @click="focus">按钮</el-button>
  <MyInput ref="myInputRef"></MyInput>
</template>

<style lang="scss" scoped></style>
